/*
 * @Author: 刘润泽
 * @Date: 2022-11-08 18:12:27
 * @LastEditors: 刘润泽
 * @LastEditTime: 2023-03-12 20:34:44
 * @Description: 针对表【autologous_blood_information】的数据库操作Service
 */
package server.business.service;

import server.business.pojo.AutologousBloodInformation;

import java.io.IOException;
import java.util.ArrayList;

import javax.servlet.http.HttpServletResponse;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
//lrz
public interface AutologousBloodInformationService extends IService<AutologousBloodInformation> {

    /**
     * 分页查询
     * 
     * @param currentPage
     * @param pageSize
     * @param
     * @return
     */
    IPage<AutologousBloodInformation> getPage(int currentPage, int pageSize,
            AutologousBloodInformation autologousBloodInformation);



    /**
     * 更改血液信息
     * @param bloodInformation
     */
    void updateBloodInfo(AutologousBloodInformation autologousBloodInformation);
    /**
     * 根据自体输血信息表信息获取符合条件的自体血
     * 
     * @param
     * @return
     */
    AutologousBloodInformation getAutologousBloodInfoByTransfusionAuto(
            AutologousBloodInformation autologousBloodInformation);

    /**
     * 根据血液id更改血液状态
     * 
     * @param bloodId
     * @param state
     */
    void setStateByBloodId(String bloodId, String state);

    /**
     * 根据编号批量下载选中数据
     * 
     * @param response
     * @param ids
     * @throws IOException
     */
    void batchDownload(HttpServletResponse response, ArrayList<Long> ids) throws IOException;
}
